<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="../css/ui-box.css">
    <link rel="stylesheet" href="../css/ui-base.css">
    <link rel="stylesheet" href="../css/ui-color.css">
    <link rel="stylesheet" href="../css/ui-input.css">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/img.css">

    <script src="../js/core/zy_control.js"></script>
    <script src="../js/core/zy_click.js"></script>
    <script src="../js/core/appframework.js"></script>
    <script src="../js/main.js"></script>
    <script src="../js/core.js"></script>
    <script src="../js/res.js"></script>

</head>
<body class="ub ub-ver">
    <div class="up_base_pwd" id="groupCtn">
        <div class="ub-ver ub">
            <div class="uc-a1 umt_1">
                <div class="uplr_p5 ub t-bla ulab ub-ac">
                <div class="ulim">群&nbsp;&nbsp;&nbsp;名:&nbsp;</div>
                <div class="ub-f1 uinput uinn4">
                    <input id="group_name" placeholder="" type="text" class="uc-a1">
                </div>
                <div class="b_list signup_input_ctn"></div>
            </div></div>
        </div>
    </div>
</body>
</html>
<script>
zy_init();
window.uexOnload = function(type){
    if (!type) {
        var toObj = GetLS("groupchat_detail");
        var groupName = toObj.name;
        $("#group_name").val(groupName);
        Res.gnTitle({title:"修改群名", rightTitle:"确定", rightFn: function(){
            var data = {};
  
            var name = $("#group_name").val();
            $ajax({
                url: "/group/updateGroupName",
                data: {
                    groupKeyId:toObj._id,
                    groupName:name
                },
                success: function(res) {
                    var toObj = GetLS("groupchat_detail");
                    toObj.name=name;
                    SetLS("groupchat_detail",toObj);
                    PCall("friendgroup_detail","Chat.modifyGroupName('"+name+"')");
                    PCall("groupchat_detail","refreshPage()");
                    PCall("grouplist","CCall('Alist.init()')");
                    WinClose();
                }
            }); 
        }});
        Add20ToHeader();
    }
     //隐藏滚动条
    uexWindow.setWindowScrollbarVisible(false);
}
</script>